package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("ex")
public class ExceptionController {
    @RequestMapping("/test")
    public String test ()throws Exception{
        //String s = null;
        //s.length();
        int i = 1/0;
        return "ex";
    }
}
